package com.xingzhe.commons.utils;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by zhult on 2017/7/13.
 */
public class RequestUitl {
    public static String getDomainAndPort(HttpServletRequest request){
        return  request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort();
    }
}
